<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:f="http://java.sun.com/jsf/core"
    template="/mytemplate.xhtml">
    
    <ui:define name="metadata">
    </ui:define>
    <ui:define name="content">
    
    	<h3><h:outputLabel value="Create Equipment Template Page"></h:outputLabel></h3>
    	<br />
    	<h:form prependId="false">
            <p:growl id="growl" showDetail="true" sticky="true" />  
            <h:panelGrid columns="2">
                <h:outputLabel value="Name: "/>
                <p:inputText value="#{equipmentTemplateService.pe.prototypeName}"/>
                <h:outputLabel value="Type: "/>
                <p:selectOneMenu id="template" value="#{equipmentTemplateService.pe.type}" >                 	 
                    <f:selectItems value="#{equipmentTemplateService.types}" />                 	  
                </p:selectOneMenu>
                <h:outputLabel value="Number of Ports: "/>
                <p:inputText id="NumberOfPorts" value="#{equipmentTemplateService.pe.numberOfPorts}"/>
            </h:panelGrid>
            <p:commandButton value="Save" action="#{equipmentTemplateService.saveEquipmentTemplate}"   
                             ajax="false" />
        </h:form>  	
    </ui:define>
</ui:composition>